'use strict';


const Controller = require('egg').Controller;

class ShopController extends Controller {

  // 申请开店
  async applyShop() {
    const { ctx } = this;
    const body = { ...ctx.request.body, user_id: ctx.state.user.id };
    const res = await ctx.service.mall.pcWeb.shop.applyShop(body);
    res ? ctx.helper.success('提交申请成功', res) : ctx.helper.error('提交申请出错了', 400);
  }

  
}

module.exports = ShopController;
